3.1343 \(\int \frac{A+B x}{\left (a+c x^2\right )^2} \, dx\)

Optimal. Leaf size=57 \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{2 a^{3/2} \sqrt{c}}-\frac{a B-A c x}{2 a c \left (a+c x^2\right )} \]

[Out]

-(a*B - A*c*x)/(2*a*c*(a + c*x^2)) + (A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(3/2)*
Sqrt[c])

_______________________________________________________________________________________

Rubi [A]  time = 0.0409325, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133 \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{2 a^{3/2} \sqrt{c}}-\frac{a B-A c x}{2 a c \left (a+c x^2\right )} \]

Antiderivative was successfully verified.

[In]  Int[(A + B*x)/(a + c*x^2)^2,x]

[Out]

-(a*B - A*c*x)/(2*a*c*(a + c*x^2)) + (A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(3/2)*
Sqrt[c])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 6.85327, size = 46, normalized size = 0.81 \[ \frac{A \operatorname{atan}{\left (\frac{\sqrt{c} x}{\sqrt{a}} \right )}}{2 a^{\frac{3}{2}} \sqrt{c}} - \frac{- A c x + B a}{2 a c \left (a + c x^{2}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((B*x+A)/(c*x**2+a)**2,x)

[Out]

A*atan(sqrt(c)*x/sqrt(a))/(2*a**(3/2)*sqrt(c)) - (-A*c*x + B*a)/(2*a*c*(a + c*x*
*2))

_______________________________________________________________________________________

Mathematica [A]  time = 0.0451275, size = 57, normalized size = 1. \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{2 a^{3/2} \sqrt{c}}+\frac{A c x-a B}{2 a c \left (a+c x^2\right )} \]

Antiderivative was successfully verified.

[In]  Integrate[(A + B*x)/(a + c*x^2)^2,x]

[Out]

(-(a*B) + A*c*x)/(2*a*c*(a + c*x^2)) + (A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(3/2
)*Sqrt[c])

_______________________________________________________________________________________

Maple [A]  time = 0.005, size = 49, normalized size = 0.9 \[{\frac{2\,Acx-2\,Ba}{4\,ac \left ( c{x}^{2}+a \right ) }}+{\frac{A}{2\,a}\arctan \left ({cx{\frac{1}{\sqrt{ac}}}} \right ){\frac{1}{\sqrt{ac}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((B*x+A)/(c*x^2+a)^2,x)

[Out]

1/4*(2*A*c*x-2*B*a)/a/c/(c*x^2+a)+1/2*A/a/(a*c)^(1/2)*arctan(c*x/(a*c)^(1/2))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/(c*x^2 + a)^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.276543, size = 1, normalized size = 0.02 \[ \left [\frac{{\left (A c^{2} x^{2} + A a c\right )} \log \left (\frac{2 \, a c x +{\left (c x^{2} - a\right )} \sqrt{-a c}}{c x^{2} + a}\right ) + 2 \,{\left (A c x - B a\right )} \sqrt{-a c}}{4 \,{\left (a c^{2} x^{2} + a^{2} c\right )} \sqrt{-a c}}, \frac{{\left (A c^{2} x^{2} + A a c\right )} \arctan \left (\frac{\sqrt{a c} x}{a}\right ) +{\left (A c x - B a\right )} \sqrt{a c}}{2 \,{\left (a c^{2} x^{2} + a^{2} c\right )} \sqrt{a c}}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/(c*x^2 + a)^2,x, algorithm="fricas")

[Out]

[1/4*((A*c^2*x^2 + A*a*c)*log((2*a*c*x + (c*x^2 - a)*sqrt(-a*c))/(c*x^2 + a)) +
2*(A*c*x - B*a)*sqrt(-a*c))/((a*c^2*x^2 + a^2*c)*sqrt(-a*c)), 1/2*((A*c^2*x^2 +
A*a*c)*arctan(sqrt(a*c)*x/a) + (A*c*x - B*a)*sqrt(a*c))/((a*c^2*x^2 + a^2*c)*sqr
t(a*c))]

_______________________________________________________________________________________

Sympy [A]  time = 1.74877, size = 90, normalized size = 1.58 \[ A \left (- \frac{\sqrt{- \frac{1}{a^{3} c}} \log{\left (- a^{2} \sqrt{- \frac{1}{a^{3} c}} + x \right )}}{4} + \frac{\sqrt{- \frac{1}{a^{3} c}} \log{\left (a^{2} \sqrt{- \frac{1}{a^{3} c}} + x \right )}}{4}\right ) + \frac{A c x - B a}{2 a^{2} c + 2 a c^{2} x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x+A)/(c*x**2+a)**2,x)

[Out]

A*(-sqrt(-1/(a**3*c))*log(-a**2*sqrt(-1/(a**3*c)) + x)/4 + sqrt(-1/(a**3*c))*log
(a**2*sqrt(-1/(a**3*c)) + x)/4) + (A*c*x - B*a)/(2*a**2*c + 2*a*c**2*x**2)

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.307803, size = 63, normalized size = 1.11 \[ \frac{A \arctan \left (\frac{c x}{\sqrt{a c}}\right )}{2 \, \sqrt{a c} a} + \frac{A c x - B a}{2 \,{\left (c x^{2} + a\right )} a c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/(c*x^2 + a)^2,x, algorithm="giac")

[Out]

1/2*A*arctan(c*x/sqrt(a*c))/(sqrt(a*c)*a) + 1/2*(A*c*x - B*a)/((c*x^2 + a)*a*c)